define(function(require, exports, module) {
    var me = {
        init: function(){
            var use  = ["render","setVm","VueInit","bannerInit"];
            use.forEach(function(name){
                for(var key in this) {
                    if(key == name) {
                        this[key]();
                    };
                };
            }.bind(this));
        },
        loading:window.loading(),
        element: document.getElementById('app'),
        template: require("TEMPLATE/activity/activityDetail.tpl"),
        render: function(){
            this.element.innerHTML = this.template;
        },
        Vm:null,
        setVm: function(){
            if(!this.Vm) this.Vm = new Vue({
                el: this.element,
                data: {
                    activeList:[],
                    textShow:false,
                    comment_modal_height:0,
                    commentShow:false,
                    trainList:[]
                }
            });
        },
        VueInit: function(){
            var vm = this.Vm;
        },
        bannerInit:function(){
            require("LIBS/swiper/swiper.min.js");

            var swiper = new Swiper('.swiper-container', {

            });
        }
    };
    me.init();
});